<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    
    <div id="app">
        <my-login></my-login>
    </div>

    <script>
        // 定义组件的时候，如果要定义全局的组件，Vue-component('组件名称',组件模板对象)
        var login = {
            template: '<h1>1234</h1>'
        }


        // 创建Vue实例，得到ViewModel
        var vm = new Vue({
            el: '#app',
            data: {},
            methods: {},
            components: {
                'myLogin': login
            }
        })
    </script>
</body>
</html>